# coding=utf-8
"""
    @project: 15python_spider
    @Author：frank
    @file： 04_requests_get.py
    @date：2023/12/29 21:00
"""
import random

import requests
from utils.UserAgent import user_agent_list

url = 'http://httpbin.org/get'

headers = {'User-Agent': random.choice(user_agent_list)}

res = requests.get(url, headers=headers)
html = res.text
print(html)
